<template>
  <div class="dlzong">
    <DengLu v-if="ok" :ok="ok" @change="change" />
    <DengLu1 v-else :ok="ok" @changeed="changeed" />
  </div>
</template>

<script>
import DengLu from "./DengLu.vue";
import DengLu1 from "./DengLu1.vue";
export default {
  components: { DengLu, DengLu1 },
  data: function () {
    return {
      ok: true,
    };
  },
  methods: {
    change: function () {
      return (this.ok = false);
    },
    changeed: function () {
      return (this.ok = true);
    },
  },
};
</script>

<style lang="less" scoped>
</style>